//
//  MaskView.m
//  planning
//
//  Created by mac on 2019/7/26.
//  Copyright © 2019 mac. All rights reserved.
//

#import "MaskView.h"
#import "AppDelegate.h"

@implementation MaskView

- (instancetype)initWithFrame:(CGRect)frame {
    
    if (self = [super initWithFrame:frame]) {
        self.frame = frame;
    
    }
    
    return self;
}

+ (void)showMaskView {
    
    MaskView *mview = [[NSBundle mainBundle] loadNibNamed:@"MaskView" owner:nil options:nil].firstObject;
    mview.frame = [UIScreen mainScreen].bounds;
    AppDelegate *delegate = (AppDelegate *)[UIApplication sharedApplication].delegate;
    [delegate.window addSubview:mview];

}

//取消蒙层
- (IBAction)removeView:(id)sender {
    
    [self removeFromSuperview];
}



@end
